import { actionCreators } from ".";

let defaultState = {
    bannerList:[]
}
// reduce
export default (state = defaultState,action) => {
    switch(action.type) {
        case "CHANGE_BANNER":
            return {
                ...state,
                bannerList:action.data
            }
            // return state.bannerList = action.data;
        default:
            return state
    }
}